package pkg2;

public class T3_3 {
	public static void main(String[] args) {
		C c1 = new C();
		c1.showA();
		c1.showB();
		c1.showC();
	}
}

abstract class A {
	int numa = 10;
	void showA() {
		System.out.println("numa = " + numa);
	}
}

abstract class B extends A{
	int numb = 20;
	void showB() {
		System.out.println("numb = " + numb);
	}
}

class C extends B {
	int numc = 30;
	@Override
	void showA() {
		super.showA();
	}
	@Override
	void showB() {
		super.showB();
	}
	void showC() {
		System.out.println("numc = " + numc);
	}
}
